package cn.diancan.service;

import java.util.List;

import cn.diancan.exception.OutMsgException;
import cn.diancan.model.GoodsCategory;
import cn.diancan.vo.other.Pager;

public interface GoodsCategoryService {
    

    public GoodsCategory saveGoodsCategory(Long parentId, String categoryName, Integer isCanDiscount) throws OutMsgException,Exception;
    
    
    public boolean updateGoodsCategory(Long goodsCategoryId, Long parentId, String categoryName, Integer isCanDiscount) throws OutMsgException,Exception;
    
    
    public Pager findByPager(Pager pager, String categoryName) throws OutMsgException ;
    
    
    public Pager findVoByPager(Pager pager,Long goodsCategoryParentId, String categoryName) throws OutMsgException ;
    
    
    public GoodsCategory findGoodsCategoryById(Long goodsCategoryId)throws OutMsgException;
    
    
    public boolean deleteGoodsCategoryById(Long id)throws OutMsgException,Exception;
    
    
    public GoodsCategory findGoodsCategoryName(String categoryName,Long parentId ,Integer level)throws OutMsgException;
    
    
    public List<GoodsCategory> findGoodsCategoryList(Long goodsCategoryParentId, Integer pageNo,Integer row);

    public GoodsCategory findByGoodsCategoryName(String name)throws OutMsgException,Exception;

    
}
